package com.hooper.mapper;

import com.hooper.model.system.SysRoleMenu;

import java.util.List;
import java.util.Set;

public interface SysRoleMenuMapper {
    int deleteById(Long id);

    int insert(SysRoleMenu row);

    SysRoleMenu selectById(Long id);

    List<SysRoleMenu> selectAll();

    int updateById(SysRoleMenu row);

    Set<Long> selectMenuIdsByRoleId(Long roleId);

    int deleteMenuByRoleId(Long roleId);

    void insertRoleMenu(Long roleId, List<Long> menuIdList);
}